// import { DataComponent } from './data/data.component';
import { NgModule }             from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
 
import { HomeComponent }   from './home/home.component';
import { GoodComponent }   from './good/good.component';




// export const ROUTES: Routes = [
//   { path: 'resource/:id', component: ResourceComponent },
//   { path: 'home', component: HomeComponent },
//   { path: 'warning', component: WarningComponent },
//   { path: 'flow', component: FlowComponent },
//   { path: 'flow/:id', component: FlowComponent },
//   { path: 'port', component: PortComponent },
//   { path: 'port/:id', component: PortComponent },
//   { path: 'data/:id', component: DataComponent },
//   { path: 'strategy', component: StrategyComponent },
//   { path: 'general', component: GeneralComponent },
//   { path: 'login', component: LoginComponent },
//   { path: 'message/:content', component: MessageComponent, outlet: 'popup' },
//   { path: 'loading/:isLoading', component: LoadingComponent, outlet: 'popup' },
//   { path: 'loginmessage', component: LoginMessageComponent, outlet: 'popup' },
//   { path: '', component: LoginComponent },
//   { path: '**', component: NoContentComponent }
// ];
 const routes: Routes = [
  { path: '', redirectTo: '/home', pathMatch: 'full' },
  { path: 'home',  component: HomeComponent },
  { path: 'good/:id', component: GoodComponent },
  //{ path: 'heroes',     component: HeroesComponent }
];
 @NgModule({
   imports: [ RouterModule.forRoot(routes) ],
   exports: [ RouterModule ]
 })
 export class AppRoutingModule {}
